import request from '@/utils/request'
// 请求图片
export const gteImg = () => {
  return request.get('/home/swiper', {
  })
}
// 我的收藏
export const gtecollect = () => {
  return request.get('/user/favorites')
}
// 查看已发布的房源
export const gtehire = () => {
  return request.get('/user/houses')
}

// 热门城市
export const getHotCityAPI = () => {
  return request.get('/area/hot')
}

// 获取所有城市，传1，获取城市下级传2
export const getAllCityAPI = (level = 1) => {
  return request({
    url: '/area/city',
    method: 'get',
    params: {
      level
    }
  })
}
